<?php
/**
 * The Header template for our theme
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
 $args = array(
    'numberposts' => 10,
    'offset' => 0,
    'category' => 0,
    'orderby' => 'post_date',
    'order' => 'DESC',
    'post_type' => 'post',
    'post_status' => 'draft, publish, future, pending, private',
    'suppress_filters' => true );

	$recent_posts = wp_get_recent_posts( $args, ARRAY_A );

?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="publisher" href="https://plus.google.com/103723251253660632987" />
<link rel="shortcut icon" href="<?php echo esc_url( home_url( '/' ) ); ?>icon.ico" type="image/x-icon" />
<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/init.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/fonts/fontreg.css" />
<?php wp_head(); ?>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=248028598709802";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-49592362-1', 'bongdaquocte.net');
  ga('send', 'pageview');

</script>

</head>

<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
	<header id="masthead" class="site-header" role="banner">
		<hgroup>
			<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><span class="hidethis"><?php bloginfo( 'name' ); ?></span>
			<?php if ( get_header_image() ) : ?>
			<img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
			<?php endif; ?>
			</a>
			</h1>
			
			<div id="top-1" class="widget-area-1">
			<?php if ( is_active_sidebar( 'top-1' ) ) : ?>
			<?php dynamic_sidebar( 'top-1' ); ?>
			<?php endif; ?>
			</div>
		
			<h2 class="site-description hidethis"><?php bloginfo( 'description' ); ?></h2>
			
		</hgroup>
		<?php /*
		<?php 
if (!is_user_logged_in() ) {
		?>
		<nav id="login-nav">
			<a href="<?php echo wp_login_url(); ?>">Đăng nhập </a> 
			<span>/</span>
			<a href="<?php echo wp_registration_url(); ?>">Đăng ký</a>
		</nav>
<?php } ?>
		<nav id="social-nav">
			<a href="#"><img src="<?php echo get_template_directory_uri() ?>/images/icons/facebook.png" alt="" /></a>
			<a href="#"><img src="<?php echo get_template_directory_uri() ?>/images/icons/twitter.jpg" alt="" /></a>
			<a href="#"><img src="<?php echo get_template_directory_uri() ?>/images/icons/vimeo.png" alt="" /></a>
			<a href="#"><img src="<?php echo get_template_directory_uri() ?>/images/icons/rss-icon.png" alt="" /></a>
			<a href="#"><img src="<?php echo get_template_directory_uri() ?>/images/icons/google-plus.png" alt="" /></a>
		</nav>
		*/ ?>
		
		<nav id="site-navigation" class="main-navigation" role="navigation">
			<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
			<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
			<?php wp_nav_menu( array('container_class' => 'navigation-menu', 'theme_location' => 'primary', 'menu_class' => 'nav-menux' ) ); ?>
 
		</nav><!-- #site-navigation -->
		
		<nav id="recent-nav">
			<span class="recent-title">Tin mới cập nhật: </span>
			
		<?php 
		foreach ($recent_posts as $recent) {
			echo '<a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' .   $recent["post_title"].'</a> ';
		}
		?>
			
		
		</nav>
		<a href="http://bongdaquocte.net/ty-so-truc-tuyen">
		<img id="img-livescore" src="<?php echo get_template_directory_uri(); ?>/images/livescore.jpg" alt="livescore" /></a>
		<div class="border-recent-bot"></div>
		<?php 
		if (!is_front_page()) { ?>
		<div class="breadcrumbs">
			<?php if(function_exists('bcn_display'))
			{
				bcn_display();
			}?>
		</div>
		<?php } ?>
		
		
	</header><!-- #masthead -->

	<div id="main" class="wrapper">